import request from '@/utils/request'

// 查询月度进销存列表
export function secondPurchaseSaleStock(query) {
  return request({
    url: '/financial/BiPurchaseSaleStock/secondPurchaseSaleStock',
    method: 'get',
    params: query
  })
}
// 提示
export function isCalculateData(query) {
  return request({
    url: '/financial/BiPurchaseSaleStock/isCalculateData',
    method: 'get',
    params: query
  })
}
// 提示
export function calculateData(query) {
  return request({
    url: '/financial/BiMonthlyCostDwd/calculateData',
    method: 'get',
    params: query
  })
}

// 查询月度进销存列表
export function selectPurchaseSaleStockAll(query) {
  return request({
    url: '/financial/BiPurchaseSaleStock/selectPurchaseSaleStockAll',
    method: 'get',
    params: query
  })
}
// 查询月度进销存列表
export function selectPurchaseSaleStockRank(query) {
  return request({
    url: '/financial/BiPurchaseSaleStock/selectPurchaseSaleStockRank',
    method: 'get',
    params: query
  })
}
// 查询月度进销存列表
export function selectMonthlyCostStatistics(query) {
  return request({
    url: '/financial/BiPurchaseSaleStock/purchaseSaleStockStatistics',
    method: 'get',
    params: query
  })
}
// 查询月度进销存列表
export function selectSkuLike(query) {
  return request({
    url: '/financial/BiPurchaseSaleStock/selectSkuLike',
    method: 'get',
    params: query
  })
}
// 查询月度进销存列表
export function listBiPurchaseSaleStock(query) {
  return request({
    url: '/financial/BiPurchaseSaleStock/list',
    method: 'get',
    params: query
  })
}
// 查询月度进销存详细
export function getBiPurchaseSaleStock(id) {
  return request({
    url: '/financial/BiPurchaseSaleStock/' + id,
    method: 'get'
  })
}

// 新增月度进销存
export function addBiPurchaseSaleStock(data) {
  return request({
    url: '/financial/BiPurchaseSaleStock',
    method: 'post',
    data: data
  })
}
// 新增月度进销存
export function financialCheck(data) {
  return request({
    url: '/financial/financialCheck/check',
    method: 'post',
    data: data
  })
}
// 新增月度进销存
export function processCheck(data) {
  return request({
    url: '/financial/financialCheck/processCheck',
    method: 'post',
    data: data
  })
}
// 修改月度进销存
export function updateBiPurchaseSaleStock(data) {
  return request({
    url: '/financial/BiPurchaseSaleStock',
    method: 'put',
    data: data
  })
}

// 删除月度进销存
export function delBiPurchaseSaleStock(id) {
  return request({
    url: '/financial/BiPurchaseSaleStock/' + id,
    method: 'delete'
  })
}
// 删除月度进销存
export function CheckdeleteAll(id) {
  return request({
    url: '/financial/financialCheck/deleteAll',
    method: 'delete'
  })
}
